home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
games
/
36
/
baspic.bas
next >
Wrap
BASIC Source File
|
1985-11-19
|
2KB
|
37 lines
10 REM **********************
20 REM ** SHOWPIC DEMO **
30 REM ** -- **
40 REM ** By Mathew Spolin **
50 REM **********************
60 REM
70 REM This is the demo driver.
80 REM The actual program starts at line 6400.
90 REM
100 FULLW 2:CLEARW 2
110 COLOR 2:?"VALID EXTENDERS:":COLOR 3:?" .NEO - Neochrome Image"
120 ?" .PI? - Degas Image":COLOR 1
130 ?:INPUT" File to load --> ",FILE$:IF FILE$="QUIT" THEN END
140 GOSUB SHOWPIC:GOTO 100
59997 '
59998 ' The SHOWPIC Subroutine Follows.
59999 '
64000 SHOWPIC:
64010 COLOR$=SPACE$(32):ERASE PAL%:DIM PAL%(15):IGNORE=0:A#=GB
64020 SCREENREG#=&H44E:SCREENRAM#=PEEK(SCREENREG#):PALREG#=&H45A
64030 GINTIN=PEEK(A#+8):SAVEP=16745024:COUNT=0:FOR REGISTER=0 TO 15
64040 PAL%(REGISTER)=PEEK(SAVEP+COUNT):COUNT=COUNT+2:NEXT REGISTER
64050 IF RIGHT$(FILE$,3)="NEO" THEN IGNORE=128:FORGET=4
64060 IF LEFT$(RIGHT$(FILE$,3),2)="PI" THEN IGNORE=34:FORGET=2
64070 IF IGNORE=0 THEN RETURN
64080 POKE CONTRL,123:POKE CONTRL+2,0:POKE CONTRL+6,0:VDISYS(0)
64090 CLOSE #1:OPEN "I",#1,FILE$:A$=INPUT$(FORGET,1)
64100 COLOR$=INPUT$(32,1):CLOSE #1:NEWC#=VARPTR(COLOR$)
64110 POKE PALREG#,NEWC#:GOSUB 64180
64120 BLOAD FILE$,SCREENRAM#-IGNORE
64130 POKE GINTIN,1:POKE GINTIN+2,1:POKE GINTIN+4,1:GEMSYS(21)
64140 POKE PALREG#,VARPTR(PAL%(0))
64150 GOSUB 64180:POKE CONTRL,122:POKE CONTRL+2,0:POKE CONTRL+6,1
64160 POKE INTIN,0:VDISYS(0)
64170 RETURN
64180 POKE CONTRL,3:POKE CONTRL+2,0:POKE CONTRL+6,0:VDISYS(0):RETURN
ə